#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1() {
    Solution sol;
    int x = 123;
    int res = sol.reverse(x);
    if (res == 321) {
        cout << "通过用例1，测试123通过 ... OK!" << endl;
    } else {
        cout << "未通过用例1，测试值为123，实际输出为" << res << endl;
    }
}

void Test2() {
    Solution sol;
    int x = -123;
    int res = sol.reverse(x);
    if (res == -321) {
        cout << "通过用例2，测试-123通过 ... OK!" << endl;
    } else {
        cout << "未通过用例2，测试值为-123，实际输出为" << res << endl;
    }
}

void Test3() {
    Solution sol;
    int x = 120;
    int res = sol.reverse(x);
    if (res == 21) {
        cout << "通过用例3，测试120通过 ... OK!" << endl;
    } else {
        cout << "未通过用例3，测试值为120，实际输出为" << res << endl;
    }
}

void Test4() {
    Solution sol;
    int x = 0;
    int res = sol.reverse(x);
    if (res == 0) {
        cout << "通过用例4，测试0通过 ... OK!" << endl;
    } else {
        cout << "未通过用例4，测试值为0，实际输出为" << res << endl;
    }
}

void Test5() {
    Solution sol;
    int x = 1534236469;
    int res = sol.reverse(x);
    if (res == 0) {
        cout << "通过用例5，测试1534236469通过 ... OK!" << endl;
    } else {
        cout << "未通过用例5，测试值为1534236469，实际输出为" << res << endl;
    }
}

void Test6() {
    Solution sol;
    int x = 2147483647;
    int res = sol.reverse(x);
    if (res == 0) {
        cout << "通过用例6，测试2147483647通过 ... OK!" << endl;
    } else {
        cout << "未通过用例6，测试值为2147483647，实际输出为" << res << endl;
    }
}

void Test7() {
    Solution sol;
    int x = -2147483648;
    int res = sol.reverse(x);
    if (res == 0) {
        cout << "通过用例7，测试-2147483648通过 ... OK!" << endl;
    } else {
        cout << "未通过用例7，测试值为-2147483648，实际输出为" << res << endl;
    }
}

int main() {
    Test1();
    Test2();
    Test3();
    Test4();
    Test5();
    Test6();
    Test7();
    return 0;
}